package com.chain.chl.model;

import com.chain.chl.model.card.Card;

/**
 * Created by baoyunfeng on 2018/6/8.
 */

public class TianApiModel {
    private String ctime;
    private String title;
    private String description;
    private String picUrl;
    private String url;

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Card toCardModel(){
        Card card = new Card();
        card.setCardType(1);
        card.setTitle(this.title);
        card.setCover(this.picUrl);
        card.setUrl(this.url);
        card.setDescription(this.description);
        return card;
    }
}
